<?php 
session_start();
if(! isset($_SESSION['mobile'])){
	echo "<script>window.location.href='../view/accountPassword_login.v.html';</script>";
	exit;
}
 ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>Document</title>
	<style>
		body{
			margin :0px;
			padding:0px; 
		}

		@media screen and (min-device-width:321px){
			header{
				background:red;
			}		

		}
		ul{
			margin: 0px;
			padding: 0px;
			list-style: none;
		}
	</style>
	<link rel="stylesheet" href="./css/orders.css" />
</head>

<body>
	<header id = "">

	</header>
	<section id = "header_search_box">
		<a href="./index.v.html" id = "header_search_index"></a>
		<span id ="span_myOrchard">我的果园</span>
		<a href="./shoppingCart.v.php" id = "f_shopcar"></a>
	</section>

	<section id ="sec_body">
		<section class="m-component-user" id="m-user" style="min-height: 523px;">
	      <div class="m-userorder-tab">

	        <ul class="nav nav-tabs" role="tablist">
	          <li role="presentation" class="active"><a href="#undone" role="tab" data-toggle="tab" onclick="switchOrder(1);">未完成</a></li>
	          <li role="presentation" class=""><a href="#done" role="tab" data-toggle="tab" onclick="switchOrder(2);">已完成</a></li>
	          <li role="presentation" class=""><a href="#cancal" role="tab" data-toggle="tab" onclick="switchOrder(3);">已取消</a></li>
	        </ul>
	        <div class="tab-content">
	          <!-- 未完成订单 -->
	            <div role="tabpanel" class="tab-pane fade m-user-order active in" id="undone">
	                                      <div class="m-cartlist">
	                  <ul class="list-unstyled">
	                     
	                    <li>
	                        <div class="m-orderinfo"><span class="pull-right m-ordering">待发货</span>订单编号：170922342629</div>
	                        <a href="/user/orderdetail/170922342629">
	                            <img class="lazy pull-left" data-original="https://imgjd3.fruitday.com/images/product_pic/103/1/1-180x180-103-8UAUAW81.jpg" src="https://imgjd3.fruitday.com/images/product_pic/103/1/1-180x180-103-8UAUAW81.jpg" alt="" style="display: block;">
	                            <div class="m-cartlist-info">
	                                <h3>沙地红蜜薯</h3>
	                                <h4>规格：2斤</h4>              
	                            </div>
	                        </a>
	                        <div class="m-ordertotal">
	                            <span>共 <strong>1</strong> 件商品 </span>
	                            <span>实付款<strong>￥25.80</strong></span>
	                        </div>
	                        <div class="m-orderfun" data-order="170922342629">
	                                                        <button type="button" class="btn btn-default btn-sm btn-order-cancal" data-order="170922342629">取消订单</button>
	                                                                                    <button type="button" class="btn btn-warning btn-sm btn-order-pay" data-order="170922342629">立即支付</button>
	                                                                                </div>
	                    </li>
	                                      </ul>
	                  </div>
	                              </div>
	            <!-- 未完成订单 -->
	            <!-- 已完成订单 -->
	            <div role="tabpanel" class="tab-pane fade m-user-order" id="done">
	                <div class="m-cartlist">
	                <ul class="list-unstyled"></ul></div>
	            </div>
	            <!-- 已完成订单 -->
	            <!-- 已取消订单 -->
	            <div role="tabpanel" class="tab-pane fade m-user-order" id="cancal">
	                <div class="m-cartlist">
	                <ul class="list-unstyled"><li><div class="m-orderinfo"><span class="pull-right m-ordercanl">已取消</span>订单编号：170922096536</div><a href="/user/orderdetail/170922096536"><img class="lazy pull-left" data-original="https://imgjd3.fruitday.com/images/product_pic/103/1/1-180x180-103-8UAUAW81.jpg" src="https://imgjd3.fruitday.com/images/product_pic/103/1/1-180x180-103-8UAUAW81.jpg" alt="" style="display: block;"><div class="m-cartlist-info"><h3>沙地红蜜薯</h3><h4>规格：2斤</h4></div></a><div class="m-ordertotal"><span>共 <strong>1</strong> 件商品 </span><span>实付款<strong>￥73.20</strong></span></div></li><li><div class="m-orderinfo"><span class="pull-right m-ordercanl">已取消</span>订单编号：170922521426</div><a href="/user/orderdetail/170922521426"><img class="lazy pull-left" data-original="https://imgjd3.fruitday.com/images/product_pic/103/1/1-180x180-103-8UAUAW81.jpg" src="https://imgjd3.fruitday.com/images/product_pic/103/1/1-180x180-103-8UAUAW81.jpg" alt="" style="display: block;"><div class="m-cartlist-info"><h3>沙地红蜜薯</h3><h4>规格：2斤</h4></div></a><div class="m-ordertotal"><span>共 <strong>1</strong> 件商品 </span><span>实付款<strong>￥89.00</strong></span></div></li><li><div class="m-orderinfo"><span class="pull-right m-ordercanl">已取消</span>订单编号：170915321054</div><a href="/user/orderdetail/170915321054"><img class="lazy pull-left" data-original="https://imgjd3.fruitday.com/images/product_pic/103/1/1-180x180-103-8UAUAW81.jpg" src="https://imgjd3.fruitday.com/images/product_pic/103/1/1-180x180-103-8UAUAW81.jpg" alt="" style="display: block;"><div class="m-cartlist-info"><h3>沙地红蜜薯</h3><h4>规格：2斤</h4></div></a><div class="m-ordertotal"><span>共 <strong>1</strong> 件商品 </span><span>实付款<strong>￥73.20</strong></span></div></li></ul></div>
	            </div>
	            <!-- 已取消订单 -->
	        </div>    
	      </div>
	      <input type="hidden" id="order_curr_type" value="1">
	      <input type="hidden" id="order_curr_page" value="1">
	      <div class="text-center m-component-more ajax_loading">     
	        <span class="glyphicon  fdayicon fdayicon-loading"></span>加载更多...       
	        <!-- <button type="button" class="btn btn-success">加载更多...</button> -->
	      </div>
	    </section>
	</section>
</body>
</html>